home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / shllutil.lha / shellutils-1.8 / Makefile.in < prev    next >
Makefile  |  1992-09-10  |  5KB  |  126 lines

  1. # Master Makefile for the GNU shell programming utilities.
  2. # Copyright (C) 1991 Free Software Foundation, Inc.
  3.  
  4. # This program is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 2, or (at your option)
  7. # any later version.
  8.  
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. # GNU General Public License for more details.
  13.  
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program; if not, write to the Free Software
  16. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17.  
  18. #### Start of system configuration section. ####
  19.  
  20. srcdir = @srcdir@
  21. VPATH = @srcdir@
  22.  
  23. # If you use gcc, you should either run the fixincludes script that
  24. # comes with it or else use gcc with the -traditional option.  Otherwise
  25. # ioctl calls will be compiled incorrectly on some systems.
  26. CC = @CC@
  27. AR = ar
  28. # Set RANLIB = @: if your system doesn't have or need ranlib.
  29. RANLIB = @RANLIB@
  30. # Use cp if you don't have install.
  31. INSTALL = @INSTALL@
  32. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  33. INSTALL_DATA = @INSTALL_DATA@
  34.  
  35. # Things you might add to DEFS:
  36. # -DSTDC_HEADERS    If you have ANSI C headers and libraries.
  37. # -DHAVE_UNISTD_H    If you have unistd.h.
  38. # -DHAVE_LIMITS_H    If you have limits.h.
  39. # -DUSG            If you have System V/ANSI C string and
  40. #            memory functions and headers.
  41. # -DHAVE_SYSLOG_H    If you have syslog.h (and the rest of syslog).
  42. # -DHAVE_SHADOW_H    If you have shadow.h (SysV shadow passwords).
  43. # -DHAVE_STRERROR    If you have strerror function.
  44. # -DHAVE_VPRINTF    If you have vprintf function.
  45. # -DHAVE_DOPRNT        If you have _doprnt function (but lack vprintf).
  46. # -DHAVE_FTIME        If you have ftime system call.
  47. # -DHAVE_UNAME        If you have uname system call (but lack gethostname).
  48. # -DTM_IN_SYS_TIME    If you need to include sys/time.h instead of
  49. #            time.h to get struct tm.
  50. # -DHAVE_TM_ZONE    If you have tm_zone in struct tm; otherwise
  51. #            uses tm_isdst and tzname.
  52. # -DHAVE_TZNAME        If you have tm_zone and tzname but not tm_zone;
  53. #            otherwise uses tm_isdst and timezone.
  54. # -DHAVE_C_LINE        If you have struct termios with the c_line member.
  55. # -DHAVE_UT_HOST    If you have ut_host in struct utmp.
  56. # -DNICE_PRIORITY    If you lack getpriority and setpriority system
  57. #            calls but have nice system call.
  58. # -DWINSIZE_IN_PTEM    If your system defines `struct winsize' in sys/ptem.h.
  59. # -DGWINSZ_BROKEN    If TIOCGWINSZ is defined but doesn't work.
  60.  
  61. DEFS = @DEFS@
  62.  
  63. CFLAGS = -g
  64. LDFLAGS = -g
  65. LIBS = @LIBS@
  66.  
  67. prefix = /usr/local
  68. exec_prefix = $(prefix)
  69.  
  70. # Prefix for each installed program, normally empty or `g'.
  71. binprefix = 
  72. # Prefix for each installed man page, normally empty or `g'.
  73. manprefix = 
  74.  
  75. # Where to install the executables.
  76. bindir = $(exec_prefix)/bin
  77.  
  78. # Where to install the manual pages.
  79. mandir = $(prefix)/man/man1
  80. # Extension (not including `.') for the installed manual page filenames.
  81. manext = 1
  82.  
  83. #### End of system configuration section. ####
  84.  
  85. SHELL = /bin/sh
  86.  
  87. MDEFINES = bindir='$(bindir)' mandir='$(mandir)' manext='$(manext)' \
  88. binprefix='$(binprefix)' manprefix='$(manprefix)' \
  89. LIBS='$(LIBS)' AR='$(AR)' RANLIB='$(RANLIB)' \
  90. INSTALL_PROGRAM='$(INSTALL_PROGRAM)' INSTALL_DATA='$(INSTALL_DATA)' \
  91. DEFS='$(DEFS)' CFLAGS='$(CFLAGS)' LDFLAGS='$(LDFLAGS)' \
  92. LIBS='$(LIBS)' CC='$(CC)'
  93.  
  94. DISTFILES = COPYING COPYING.LIB ChangeLog Makefile.in README NEWS INSTALL \
  95. configure configure.in
  96.  
  97. # Redundant stuff for making only selected programs.
  98. PROGS = basename date dirname echo env expr false groups id logname \
  99. pathchk printenv printf sleep tee test true tty who whoami yes \
  100. @PROGS@
  101.  
  102. # Subdirectories to run make in for the primary targets.
  103. SUBDIRS = lib src man
  104.  
  105. all:
  106.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  107.  
  108. $(PROGS) su:
  109.     cd lib; $(MAKE) $(MDEFINES) all
  110.     cd src; $(MAKE) $(MDEFINES) $@
  111.  
  112. install uninstall TAGS clean mostlyclean distclean realclean:
  113.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  114.  
  115. dist:
  116.     echo shellutils-`sed -e '/version_string/!d' -e 's/[^0-9.]*\([0-9.]*\).*/\1/' -e q src/version.c` > .fname
  117.     rm -rf `cat .fname`
  118.     mkdir `cat .fname`
  119.     ln $(DISTFILES) `cat .fname`
  120.     for dir in $(SUBDIRS); do mkdir `cat .fname`/$$dir; cd $$dir; $(MAKE) $@; cd ..; done
  121.     tar chZf `cat .fname`.tar.Z `cat .fname`
  122.     rm -rf `cat .fname` .fname
  123.  
  124. # Prevent GNU make v3 from overflowing arg limit on SysV.
  125. .NOEXPORT:
  126.